import axios from '../http/axios'

export default {
    //-----------------------获取专业信息列表---------------------------
    getSubjects(params){
        return axios({
            url:'/subjects/getSubjects',
            method:'GET',
            params
        })
    },
    //-------------------------新增专业信息----------------------------
    addSubjects(data){
        return axios({
            url:'/subjects/addSubjects',
            method:'POST',
            data
        })
    },
    //-------------------------删除专业信息----------------------------
    deleteSubjects(_id){
        return axios({
            url:'/subjects/deleteSubjects',
            method:'DELETE',
            data:{
                _id
            }
        })
    },
    //-------------------------修改专业信息----------------------------
    updateSubjects(data){
        return axios({
            url:'/subjects/updateSubjects',
            method:'PUT',
            data
        })
    }
}









